package com.aierkeji.call.b2c;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication(scanBasePackages="com.aierkeji.call.b2c")
@EnableJpaRepositories(basePackages="com.aierkeji.call.b2c.dao.jpa",repositoryImplementationPostfix="CustomImpl")
@EntityScan(basePackages="com.aierkeji.call.b2c.entity")
@ServletComponentScan(basePackages= {"com.aierkeji.call.b2c.filter","com.aierkeji.call.b2c.controller"})
@EnableTransactionManagement
@EnableScheduling
public class AierkejiCallB2cApplication {

    public static void main(String[] args) {
        System.setProperty("tomcat.util.http.parser.HttpParser.requestTargetAllow","{}");
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(AierkejiCallB2cApplication.class, args);
    }

}
